import React from 'react'

import {BrowserRouter,useRoutes} from 'react-router-dom'
 import { routes } from './router/index'
function App() {

  const Ele=()=>useRoutes(routes)
  return (
    <BrowserRouter>
   <Ele />
  </BrowserRouter>
  )
}

export default App
